package cn.tedu.store.commons.pojo.order.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Order implements Serializable {

    private Long id;//记录id
    private String sn;//订单号
    private Long userId;//用户id
    private String username;//用户名
    private String receiverName;//收货人姓名
    private String receiverPhone;//电话
    private String receiverProvince;//省
    private String receiverCity;//市
    private String receiverRegion;//区
    private String receiverDetailAddress;//详细地址
    private BigDecimal totalAmount;//总金额
    private BigDecimal payAmount;//实际支付金额
    private BigDecimal freightAmount;//运费金额
    private BigDecimal integrationAmount;//积分抵扣金额
    private Integer useIntegration;//使用的积分数
    private BigDecimal couponAmount;//优惠券抵扣金额
    private Long couponId;//优惠券id
    private Integer integration;//获得的积分
    private Integer growth;//获得的成长值
    private Integer payType;//支付类型 0->支付宝 1->微信
    private Integer isConfirm;//收货状态 0->未确认 1->已确认
    private Integer status;//订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
    private String note;//订单备注
    private LocalDateTime createTime;//创建时间
    private LocalDateTime paymentTime;//支付时间
    private LocalDateTime deliveryTime;//发货时间
    private LocalDateTime receiveTime;//收货时间
    private LocalDateTime modifiedTime;//修改时间

}
